package main

import (
	"google.golang.org/grpc"
	"google.golang.org/grpc/credentials/insecure"
	"mxshop_srvs/goods_srv/proto"
)

var conn *grpc.ClientConn
var client proto.GoodsClient

func Init() {
	var err error
	conn, err = grpc.Dial("10.26.10.121:50156", grpc.WithTransportCredentials(insecure.NewCredentials()))
	if err != nil {
		panic(err)
	}
	client = proto.NewGoodsClient(conn)
}

func main() {

	Init()
	//TestGoodsList()
	//TestCategoryBrandList()
	TestGetAllCategorysList()
	conn.Close()
}
